package com.imooc.service;

import com.imooc.dto.OrderDTO;
import com.lly835.bestpay.model.PayResponse;
import com.lly835.bestpay.model.RefundResponse;

/**
 * FileName: PayService.java
 * Description: 支付service
 *
 * @author HuangRI(874668739 @ qq.com)
 * @version 1.0
 * @date 2020/12/28
 */
public interface PayService {

    /**
     * 生成微信预付单信息
     * @param orderDTO
     */
    PayResponse create(OrderDTO orderDTO);

    /**
     * 微信支付后给微信异步通知的接口
     * @param notifyData
     */
    PayResponse notify(String notifyData);

    /**
     * 退款
     * @param orderDTO
     */
    RefundResponse refund(OrderDTO orderDTO);
}
